//
//  criarViagemViewController.h
//  ViagemBem
//
//  Created by Wesley Thesolin de Faria on 29/10/13.
//  Copyright (c) 2013 Michel de Sousa Carvalho. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CidadeDAO.h"
#import "TipoViagemDAO.h"
#import "ViagemDAO.h"
#import <MapKit/MapKit.h>
#import <CoreLocation/CoreLocation.h>

@interface criarViagemViewController : UIViewController <MKMapViewDelegate, CLLocationManagerDelegate,UITextFieldDelegate >
@property (weak, nonatomic) IBOutlet MKMapView *mapViagem;
@property (strong, nonatomic) MKMapItem *destination;
@property (weak, nonatomic) IBOutlet UIDatePicker *datePickerData;
@property (weak, nonatomic) IBOutlet UITextField *textDataInicial;
@property (weak, nonatomic) IBOutlet UITextField *textDataFinal;
@property (weak, nonatomic) IBOutlet UITextField *textDestino;
@property (weak, nonatomic) IBOutlet UITextField *textValorReservado;
@property (weak, nonatomic) IBOutlet UISegmentedControl *selectTpViagem;
@property (weak, nonatomic) Usuario* usuario;
@property (weak, nonatomic) Viagem* viagem;

@property UITextField *campoSelecionado;

@property UIView *modalView;
-(void) exibeDatePicker;
-(void) selecionarData:(UITextField*)textfield;
-(BOOL) validadosViagem;
@end
